package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.FreightTemplateCharging;
import com.ecoolex.chinadutyfree.retailer.entity.FreightTemplateChargingExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface FreightTemplateChargingMapper {
    long countByExample(FreightTemplateChargingExample example);

    int deleteByExample(FreightTemplateChargingExample example);

    int deleteByPrimaryKey(Integer chargingId);

    int insert(FreightTemplateCharging record);

    int insertSelective(@Param("record") FreightTemplateCharging record, @Param("selective") FreightTemplateCharging.Column ... selective);

    FreightTemplateCharging selectOneByExample(FreightTemplateChargingExample example);

    List<FreightTemplateCharging> selectByExample(FreightTemplateChargingExample example);

    FreightTemplateCharging selectByPrimaryKey(Integer chargingId);

    FreightTemplateCharging selectByPrimaryKeyWithLogicalDelete(@Param("chargingId") Integer chargingId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") FreightTemplateCharging record, @Param("example") FreightTemplateChargingExample example, @Param("selective") FreightTemplateCharging.Column ... selective);

    int updateByExample(@Param("record") FreightTemplateCharging record, @Param("example") FreightTemplateChargingExample example);

    int updateByPrimaryKeySelective(@Param("record") FreightTemplateCharging record, @Param("selective") FreightTemplateCharging.Column ... selective);

    int updateByPrimaryKey(FreightTemplateCharging record);

    int batchInsert(@Param("list") List<FreightTemplateCharging> list);

    int batchInsertSelective(@Param("list") List<FreightTemplateCharging> list, @Param("selective") FreightTemplateCharging.Column ... selective);

    int logicalDeleteByExample(@Param("example") FreightTemplateChargingExample example);

    int logicalDeleteByPrimaryKey(Integer chargingId);
}